package com.cloudlead.plugin.scheduler.entity;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.common.persistence.UpdateCheck;

import javax.validation.constraints.Size;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;
import java.lang.Integer;

/**
 * EScheduleJobParams is a Querydsl bean type
 */
@Label("计划任务参数")
public class EScheduleJobParams extends AbstractIdEntity<String> {

    private static final long serialVersionUID =289731761375304L;    
    @Size(max=24)
    @Label("编号")
    @NotNull(groups={UpdateCheck.class})
    private String id;

    @Size(max=24)
    @Label("所属工作任务")
    @NotNull
    private String jobId;

    @Label("参数序号")
    @NotNull
    private Integer paramIndex;

    @Size(max=7)
    @Label("参数类型")
    @NotNull
    private String paramType;

    @Size
    @Label("参数")
    @NotNull
    private String paramValue;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getJobId() {
        return jobId;
    }

    public void setJobId(String jobId) {
        this.jobId = jobId;
    }

    public Integer getParamIndex() {
        return paramIndex;
    }

    public void setParamIndex(Integer paramIndex) {
        this.paramIndex = paramIndex;
    }

    public String getParamType() {
        return paramType;
    }

    public void setParamType(String paramType) {
        this.paramType = paramType;
    }

    public String getParamValue() {
        return paramValue;
    }

    public void setParamValue(String paramValue) {
        this.paramValue = paramValue;
    }

    public String toString() {
         return String.format("EScheduleJobParams { id : %s,jobId : %s,paramIndex : %s,paramType : %s,paramValue : %s }",id,jobId,paramIndex,paramType,paramValue);
    }

}

